Notifying the "text" property inside `st_entry_set_text()` misses all
the text changes done by ClutterText itself, including those that happen
on key-presses. Fix that by notifying that property inside the
"notify::text" handler connected to the ClutterText.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/951
/* Since the text changed, force a regen of the shadow texture */
cogl_clear_object (&priv->text_shadow_material);
+
+ g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_TEXT]);
}
static void
clutter_text_set_text (CLUTTER_TEXT (priv->entry), text);
- g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_TEXT]);
+ /* Note: PROP_TEXT will get notfied from our notify::text handler connected
+ * to priv->entry. */
}
/**